openerp.osbzr_set_tilte = function() {
    var instance = openerp;
    var QWeb = instance.web.qweb;
    var _t = instance.web._t;
    var has_action_id = false;
    instance.web.WebClient.include({
      init: function(parent, client_options) {
        this._super(parent);
        if (client_options) {
            _.extend(this.client_options, client_options);
        }
        this._current_state = null;
        this.menu_dm = new instance.web.DropMisordered();
        this.action_mutex = new $.Mutex();
        this.set('title_part', {"zopenerp": ""});
       },
        set_title_part: function(part, title) {
          var tmp = _.clone(this.get("title_part"));
          tmp[part] = title;
          var self=this;
          var model=new instance.web.Model('res.company');
          model.call("read",[self.session.company_id,["name"]],{context:new instance.web.CompoundContext()}).then(function(result){
             tmp.zopenerp=result.name;
          });
          this.set("title_part", tmp);
        },
      });
}
